package com.knife.tools;

public class CharCode
{
  public static String converStr(String s)
  {
    String str = s;
    return str;
  }

  public static String transStr(String s)
  {
    String str = s;
    str = str.replaceAll("'", "&#39;");
    return str;
  }

  public static String reTransStr(String s)
  {
    String str = s;
    str = str.replaceAll("&#39;", "'");
    str = str.replaceAll(" ", "&nbsp;");
    str = str.replaceAll("\"", "&quot");
    str = str.replaceAll("<", "&lt;");
    str = str.replaceAll(">", "&gt;");
    return str;
  }
}
